

            
// This code is a generated code by a tool
// designed and coded by Shohdi Mohamed Elsheemy ( shohdi@gmail.com )

            
using System;
using System.Collections.Generic;
using System.Web;
namespace DatabaseComponent
{
[Serializable]
public partial class RegisteredCourses
{
System.Int64 _ID =-1;
public System.Int64 ID
{
get { return _ID;}
set { _ID = value;}
}
System.Int64 _CoursesID =-1;
public System.Int64 CoursesID
{
get { return _CoursesID;}
set { _CoursesID = value;}
}
System.Int64 _EmployeesID =-1;
public System.Int64 EmployeesID
{
get { return _EmployeesID;}
set { _EmployeesID = value;}
}
System.DateTime? _StartDate =null;
public System.DateTime? StartDate
{
get { return _StartDate;}
set { _StartDate = value;}
}
System.String _CurrentData ="";
public System.String CurrentData
{
get { return _CurrentData;}
set { _CurrentData = value;}
}
System.Int64? _LastSlide =null;
public System.Int64? LastSlide
{
get { return _LastSlide;}
set { _LastSlide = value;}
}
System.Int64? _TotalSlides =null;
public System.Int64? TotalSlides
{
get { return _TotalSlides;}
set { _TotalSlides = value;}
}
System.Int64 _CourseStatus =-1;
public System.Int64 CourseStatus
{
get { return _CourseStatus;}
set { _CourseStatus = value;}
}
System.Int64? _ExamDegree =null;
public System.Int64? ExamDegree
{
get { return _ExamDegree;}
set { _ExamDegree = value;}
}
System.DateTime? _EndDate =null;
public System.DateTime? EndDate
{
get { return _EndDate;}
set { _EndDate = value;}
}
System.Int64? _NoOfTicks =null;
public System.Int64? NoOfTicks
{
get { return _NoOfTicks;}
set { _NoOfTicks = value;}
}
System.DateTime? _LastTickDate =null;
public System.DateTime? LastTickDate
{
get { return _LastTickDate;}
set { _LastTickDate = value;}
}
System.Int64 _TotalSpendTime =-1;
public System.Int64 TotalSpendTime
{
get { return _TotalSpendTime;}
set { _TotalSpendTime = value;}
}
public RegisteredCourses()
{
}
public RegisteredCourses(System.Int64 __CoursesID,System.Int64 __EmployeesID,System.DateTime? __StartDate,System.String __CurrentData,System.Int64? __LastSlide,System.Int64? __TotalSlides,System.Int64 __CourseStatus,System.Int64? __ExamDegree,System.DateTime? __EndDate,System.Int64? __NoOfTicks,System.DateTime? __LastTickDate,System.Int64 __TotalSpendTime)
{
_CoursesID = __CoursesID;
_EmployeesID = __EmployeesID;
_StartDate = __StartDate;
_CurrentData = __CurrentData;
_LastSlide = __LastSlide;
_TotalSlides = __TotalSlides;
_CourseStatus = __CourseStatus;
_ExamDegree = __ExamDegree;
_EndDate = __EndDate;
_NoOfTicks = __NoOfTicks;
_LastTickDate = __LastTickDate;
_TotalSpendTime = __TotalSpendTime;
}
public RegisteredCourses(System.Int64 __ID,System.Int64 __CoursesID,System.Int64 __EmployeesID,System.DateTime? __StartDate,System.String __CurrentData,System.Int64? __LastSlide,System.Int64? __TotalSlides,System.Int64 __CourseStatus,System.Int64? __ExamDegree,System.DateTime? __EndDate,System.Int64? __NoOfTicks,System.DateTime? __LastTickDate,System.Int64 __TotalSpendTime)
{
_ID = __ID;
_CoursesID = __CoursesID;
_EmployeesID = __EmployeesID;
_StartDate = __StartDate;
_CurrentData = __CurrentData;
_LastSlide = __LastSlide;
_TotalSlides = __TotalSlides;
_CourseStatus = __CourseStatus;
_ExamDegree = __ExamDegree;
_EndDate = __EndDate;
_NoOfTicks = __NoOfTicks;
_LastTickDate = __LastTickDate;
_TotalSpendTime = __TotalSpendTime;
}


             public override bool Equals(object obj)
         {
             if (obj is RegisteredCourses)
             {
                 RegisteredCourses newObj = (RegisteredCourses)obj;

                 if (newObj.ID == this.ID )
                 {
                     return true;
                 }
                 else
                 {
                     return false;
                 }
             }

             else
             {
                 return false;
             }

            
         }            











             }
}
